package visual;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Vector;

import javax.swing.JPanel;

public class GameBoard extends JPanel implements MouseListener{
	public final static int WIDTH = 26;
	public final static int HEIGHT = 26;
	
	public GameBoard(){
		addMouseListener(this);
	}
	
	public void paint(Graphics g){
		g.setColor(new Color(0x000000));
		g.fillRect(0, 0, getWidth(), getHeight());
		g.setColor(new Color(0xFFFFFF));
		for(int i = 0; i < HEIGHT; i++){
			g.drawLine(0, i * getHeight() / HEIGHT, getWidth(), i * getHeight() / HEIGHT);
		}
		for(int i = 0; i < WIDTH; i++){
			g.drawLine(i * getWidth() / WIDTH, 0, i * getWidth() / WIDTH, getHeight());
		}
	}
	
	public void mouseClicked(MouseEvent e) {
		System.out.println("arg0: " + e);
	}

	public void mouseEntered(MouseEvent e) {
	}

	public void mouseExited(MouseEvent e) {
	}

	public void mousePressed(MouseEvent e) {
	}

	public void mouseReleased(MouseEvent e) {
	}
}
